package com.feeyo.prophet.pojo.enums;

public enum ResultEnum {
    //
    SUCCESS(0, "success"),
    EXCEPTION(10000, "server internal exception"),
    USER_UNAUTHORIZED(21401, "user unauthorized"),
    // 参数不合法
    PARAM_ILLEGAL(21400, "param illegal"),
    USER_ILLEGAL_AUTHENTICATION(21402, "user illegal authentication"),
    USER_NO_PATH_PERMISSION(21403, "user no path permission"),
    CONVERSATION_ERROR(21405, "conversation error"),
    CONVERSATION_RUNNING(21406, "conversation Running"),
    ;

    private final Integer code;

    public final String msg;


    private ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
